package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Goods {
     @TableId(type = IdType.AUTO)
     private Long id;
     private String goodsName;
     private Double goodsPrice;
     private Integer goodsNums;
     private String goodsStatus;

     @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
     private Date goodsTime;

     @TableField(exist = false)
     private Integer pageNum;

     @TableField(exist = false)
     private Integer pageSize;
}
